/* Shared Quantum Innovator site styles */

:root {
  --bg: #08111f;
  --bg-2: #101a2e;
  --paper: #f6f3eb;
  --ink: #162033;
  --muted: #5b6578;
  --line: rgba(255,255,255,.12);
  --gold: #c4a43a;
  --magnet: #b5a32b;
  --temp: #c4453a;
  --gyro: #1e3d73;
  --chem: #4aa3c9;
  --bio: #1c8a86;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(196,164,58,.18), transparent 55%),
    radial-gradient(700px 500px at 100% 8%, rgba(28,138,134,.16), transparent 50%),
    var(--bg);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
h1, h2, h3, .brand { font-family: Outfit, "Segoe UI", sans-serif; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 20; }
header.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(8,17,31,.82);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand span { color: var(--gold); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: #d7deea; text-decoration: none; font-size: .95rem; font-weight: 600; }
nav a:hover { color: #fff; }
.hero {
  position: relative; overflow: hidden;
  min-height: 72vh; display: grid; align-items: end;
  color: #fff;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: saturate(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,17,31,.15) 0%, rgba(8,17,31,.55) 45%, rgba(8,17,31,.94) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 7rem 0 3.2rem; }
.kicker {
  display: inline-block; margin: 0 0 .8rem;
  padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: #f0e2b2;
}
h1 { margin: 0 0 .6rem; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .95; font-weight: 800; }
.lede { max-width: 38rem; font-size: 1.2rem; line-height: 1.45; color: #e7edf6; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.card-hero-grid .actions { margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.2rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #1a1404; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-1px); }
section { padding: 4rem 0; }
.panel {
  background: var(--paper); color: var(--ink);
  border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1.15fr .85fr; } }
h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.levels { display: grid; gap: .7rem; }
.level {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
  background: #fff; border-radius: 14px; padding: .85rem 1rem;
}
.roman {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-family: Outfit, sans-serif;
}
.level strong { display: block; }
.level span { color: var(--muted); font-size: .95rem; }
.cats { display: grid; gap: .6rem; margin: 1.4rem 0 0; }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(5, 1fr); } }
.cat-chip {
  color: #fff; text-decoration: none; border-radius: 14px;
  padding: .9rem .8rem; font-weight: 700; min-height: 4.6rem;
  display: flex; align-items: flex-end;
}
.audiences { display: grid; gap: .8rem; }
@media (min-width: 720px) { .audiences { grid-template-columns: repeat(4, 1fr); } }
.aud {
  background: #fff; border-radius: 16px; padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  color: inherit; text-decoration: none;
}
.aud img {
  width: 100%; max-width: 170px; height: auto;
  align-self: center; border-radius: 10px;
}
.aud h3 { margin: 0; font-size: 1.05rem; }
.aud p { margin: 0; font-size: .95rem; color: var(--muted); }
.aud-more { margin-top: auto; padding-top: .3rem; font-weight: 700; font-size: .92rem; }
.aud:hover { box-shadow: var(--shadow); }
.aud:hover .aud-more { text-decoration: underline; }
.preview-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: end;
  margin-bottom: 1.2rem; color: #fff;
}
.preview-head p { margin: .35rem 0 0; color: #c9d3e3; }
.carousel {
  margin: 0 0 1.6rem; padding: 1rem 1rem 1.15rem;
  border-radius: 22px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.carousel-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: .85rem; color: #fff;
}
.carousel-bar h3 { margin: 0; font-size: 1.45rem; }
.carousel-bar p { margin: .15rem 0 0; color: #d5dbe6; font-size: .92rem; }
.nav-btns { display: flex; gap: .4rem; }
.nav-btns button {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(8,17,31,.35);
  color: #fff; font-size: 1.2rem; cursor: pointer;
}
.nav-btns button:hover { background: rgba(255,255,255,.12); }
.track {
  display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; padding-bottom: .4rem;
}
.card-item { flex: 0 0 230px; scroll-snap-align: start; text-align: left; color: #fff; }
.card-item figure { margin: 0; }
.card-item .card-zoom {
  display: block; width: 230px; padding: 0; border: 0;
  background: none; cursor: zoom-in; border-radius: 14px;
}
.card-item img {
  width: 230px; height: auto; aspect-ratio: 215 / 357; object-fit: contain;
  border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.35);
  background: #fff;
}
.card-item figcaption { margin-top: .65rem; }
.card-item .card-link {
  display: block; color: #fff; text-decoration: none;
  font-size: 1.12rem; font-weight: 700; line-height: 1.25;
}
.card-item .card-link:hover,
.card-item .card-link:focus-visible { color: var(--gold); text-decoration: underline; }
.card-item small { display: block; margin-top: .2rem; font-size: .98rem; font-weight: 400; color: #c9d3e3; }
.cta {
  display: grid; gap: 1.2rem; align-items: center;
  background: linear-gradient(135deg, #15233d, #0d182b);
  color: #fff; border-radius: 28px; padding: 1.8rem;
  border: 1px solid var(--line);
}
@media (min-width: 800px) { .cta { grid-template-columns: 1.4fr auto; } }
.project-box {
  display: grid; gap: 1.4rem; align-items: center;
  background: #fff; color: var(--ink);
  border-radius: 28px; padding: 1.5rem;
  box-shadow: var(--shadow);
}
@media (min-width: 800px) { .project-box { grid-template-columns: 220px 1fr; } }
.logo-on-white {
  background: #fff; border-radius: 18px; padding: .6rem;
}
.logo-on-white img { width: 100%; max-width: 240px; margin-inline: auto; }
footer.site { padding: 2.4rem 0 3rem; color: #d7deea; }
.fund {
  display: grid; gap: 1.2rem; align-items: center;
  background: #fff; color: var(--ink); border-radius: 20px; padding: 1.2rem;
}
@media (min-width: 760px) { .fund { grid-template-columns: 180px 1fr; } }
.fund img { width: 180px; height: auto; background: #fff; }
.imprint { margin-top: 1.2rem; font-size: .92rem; color: #aeb7c6; }
.imprint a { color: #f0e2b2; }
.lightbox {
  position: fixed; inset: 0; display: none; place-items: center;
  background: rgba(4,8,16,.86); z-index: 40; padding: 1.2rem;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-height: min(88vh, 920px); width: auto; max-width: min(92vw, 420px);
  border-radius: 16px; box-shadow: var(--shadow);
}
.lightbox .close, .lightbox .step {
  position: absolute; border: 0; background: #fff; color: var(--ink);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
}
.lightbox .close { top: 1rem; right: 1rem; }
.lightbox .prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Card pages */
.hero-card { min-height: auto; align-items: stretch; }
.hero-card .hero-copy { padding: 5.5rem 0 2.4rem; }
.card-hero-grid {
  display: grid; gap: 1.6rem; align-items: center;
}
@media (min-width: 860px) {
  .card-hero-grid { grid-template-columns: 240px 1fr; }
}
.card-hero-grid .card-zoom {
  display: block; width: min(240px, 100%); padding: 0; border: 0;
  background: none; cursor: zoom-in; border-radius: 16px;
}
.card-hero-grid .preview {
  width: 100%; margin: 0; display: block;
  border-radius: 16px; background: #fff;
  box-shadow: var(--shadow);
}
.card-hero-grid h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.pager { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.resources { display: grid; gap: 1rem; }
@media (min-width: 800px) { .resources { grid-template-columns: repeat(3, 1fr); } }
.resource {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 22px; padding: 1.2rem; color: #fff; min-height: 14rem;
}
.resource h3 { margin: 0 0 .35rem; }
.resource p.lead { margin: 0 0 1rem; color: #c9d3e3; font-size: .95rem; }
.resource ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.resource a.res-link {
  display: block; padding: .7rem .85rem; border-radius: 12px;
  background: rgba(255,255,255,.08); text-decoration: none; font-weight: 700;
}
.resource a.res-link:hover { background: var(--gold); color: #1a1404; }
.resource .empty {
  margin: 0; color: #aeb7c6; font-size: .95rem;
}
.guide { color: #fff; }
.guide-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-block {
  background: var(--paper); color: var(--ink);
  border-radius: 22px; padding: 1.2rem 1.3rem;
}
.guide-block h3 { margin: 0 0 .5rem; }
.guide-block ol { margin: 0; padding-left: 1.15rem; }
.guide-block li { margin: 0 0 .7rem; }
.guide-block li:last-child { margin-bottom: 0; }
.guide-note {
  margin-top: 1rem; padding: 1rem 1.2rem;
  border-radius: 18px; background: rgba(255,255,255,.06);
  border: 1px solid var(--line); color: #d7deea;
}
.code-sample {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #162033;
  color: #e7edf6;
  font-size: .92rem;
  line-height: 1.45;
}
.guide-block a { color: #1e3d73; font-weight: 700; }
.guide-note a { color: var(--gold); font-weight: 700; }
.suggest {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
  color: #d7deea;
}
.suggest a { color: var(--gold); font-weight: 700; }
.steckbrief-box {
  margin: 0 0 1rem;
  background: rgba(196,164,58,.14);
  border: 1px solid rgba(196,164,58,.55);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
  color: #fff;
}
.steckbrief-box h3 { margin: 0 0 .35rem; color: var(--gold); }
.steckbrief-box p.lead { margin: 0 0 1rem; color: #e7edf6; }
.steckbrief-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
@media (min-width: 800px) {
  .steckbrief-box ul { grid-template-columns: 1fr 1fr; }
}
.steckbrief-box a.res-link {
  display: block; padding: .7rem .85rem; border-radius: 12px;
  background: rgba(8,17,31,.45); text-decoration: none; font-weight: 700;
}
.steckbrief-box a.res-link:hover { background: var(--gold); color: #1a1404; }
.stat-grid {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(6, 1fr); } }
.stat-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 1rem 1.1rem; color: #fff;
}
.stat-tile strong {
  display: block; font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1;
}
.stat-tile span { color: #c9d3e3; font-size: .92rem; }
.table-wrap { overflow-x: auto; }
table.stats {
  width: 100%; border-collapse: collapse; font-size: .95rem;
}
table.stats th, table.stats td {
  text-align: left; padding: .55rem .6rem;
  border-bottom: 1px solid rgba(22,32,51,.12);
}
table.stats th:nth-child(n+3),
table.stats td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
table.stats thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.stats .cat-row th { padding-top: 1rem; border-bottom-color: rgba(22,32,51,.22); }
table.stats .sum-row th, table.stats .sum-row td { font-weight: 800; border-top: 2px solid var(--ink); }
table.stats tr.is-empty td { color: var(--muted); }
table.stats a { color: #1e3d73; font-weight: 700; text-decoration: none; }
table.stats a:hover { text-decoration: underline; }
.guide-block-wide { grid-column: 1 / -1; }
.guide-links { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.guide-links a { color: #1e3d73; font-weight: 700; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }
.handout-box {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
  margin: 0 0 1.2rem;
  background: rgba(196,164,58,.16);
  border: 1px solid rgba(196,164,58,.6);
  border-radius: 22px;
  padding: 1.15rem 1.3rem;
  color: #fff;
}
.handout-box h3 { margin: 0 0 .25rem; color: var(--gold); }
.handout-box p { margin: 0; color: #e7edf6; }
.handout-box .btn { flex: 0 0 auto; }
.order-form { margin-top: .4rem; }
.form-grid {
  display: grid; gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-field { display: grid; gap: .3rem; color: var(--ink); font-weight: 700; }
.form-field span .opt { font-weight: 400; color: var(--muted); }
.form-field-wide { grid-column: 1 / -1; }
.form-field input, .form-field textarea {
  font: inherit; font-weight: 400;
  padding: .7rem .85rem; border-radius: 12px;
  border: 1px solid rgba(22,32,51,.18); background: #fff; color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 5rem; }
.form-check {
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start;
  margin: 1.1rem 0; font-weight: 400;
}
.form-check input { margin-top: .3rem; }
.form-actions { margin: 0; }
.form-status {
  margin: 1rem 0 0; padding: .85rem 1rem; border-radius: 14px; font-weight: 600;
}
.form-status.is-ok { background: rgba(28,138,134,.14); color: #0f5a57; }
.form-status.is-err { background: rgba(196,69,58,.12); color: #8a241c; }
.form-status.is-pending { background: rgba(22,32,51,.06); color: var(--ink); }
.form-status a { color: inherit; }
.form-status-hint { display: inline-block; margin-top: .35rem; font-weight: 400; }
.hp {
  position: absolute; left: -9999px; height: 0; overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
